package com.crh.dao;

import com.crh.bean.Goods;

import java.sql.Connection;

public interface IGoodsDao {
    /**
     * 添加商品
     *
     * @param goods
     * @return
     */
    public boolean addGoods(Goods goods);
    /**
     * 删除商品
     *
     * @param goodId 商品id
     * @param conn   连接
     * @return true、false
     * @throws Exception 抛出异常
     */
    public boolean delGoods(int goodId, Connection conn) throws Exception;


}
